import request from '@/utils/request'

// 查询开票通知单列表
export function listBill(query) {
  return request({
    url: '/business/bill/list',
    method: 'get',
    params: query
  })
}

// 查询开票通知单详细
export function getBill(id) {
  return request({
    url: '/business/bill/' + id,
    method: 'get'
  })
}

// 新增开票通知单
export function addBill(data) {
  return request({
    url: '/business/bill',
    method: 'post',
    data: data
  })
}

// 修改开票通知单
export function updateBill(data) {
  return request({
    url: '/business/bill',
    method: 'put',
    data: data
  })
}

// 删除开票通知单
export function delBill(id) {
  return request({
    url: '/business/bill/' + id,
    method: 'delete'
  })
}
// 入库生成开票通知单
export function rukuJieSuanAddBill(data) {
  return request({
    url: '/business/bill/rukuJieSuanAddBill',
    method: 'post',
    data: data
  })
}
// 出库生成开票通知单
export function chukuJieSuanAddBill(data) {
  return request({
    url: '/business/bill/chukuJieSuanAddBill',
    method: 'post',
    data: data
  })
}
